package com.example.aopdemo.proxy;

public class Main {
    public static void main(String[] args) {
        //目标对象，静态代理的方式。
        HouseSubject subject=new RealHouseSubject();
        HouseProxy proxy=new HouseProxy(subject);
        proxy.rentHouse();
        proxy.saleHouse();

    }
}
